package com.qfjy.homework.wangkaixuan;

/**
 * 代理类
 */
public class ProxyServer implements NetWork {
    private NetWork work;

    public ProxyServer(NetWork work){
        this.work=work;
    }
    public void check(){
        System.out.println("联网之前的检查工作");
    }

    @Override
    public void browse() {
        check();

        work.browse();
    }
}
